﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Entity.SingleChain
{
    public class Node
    {
        /// <summary>
        /// 数值
        /// </summary>
        private int num;
        public int Num
        {
            set { num = value; }
            get { return num; }
        }

        /// <summary>
        /// 下一个节点
        /// </summary>
        private Node next { get; set; }
        public Node Next
        {
            set { next = value; }
            get { return next; }
        }

        /// <summary>
        /// 无参构造函数
        /// </summary>
        public Node()
        {
        }

        /// <summary>
        /// 有参构造函数
        /// </summary>
        /// <param name="num"></param>
        public Node(int num)
        {
            this.num = num;
        }
    }
}
